package com.yfqy.admin.service;

import com.github.pagehelper.PageInfo;
import com.yfqy.admin.domain.dto.promotion.ProductPromotionDTO;
import com.yfqy.admin.domain.dto.promotion.PromotionQueryDTO;
import com.yfqy.admin.domain.entity.ProductPromotion;
import com.yfqy.admin.domain.vo.PromotionVO;

import java.util.List;

public interface ProductPromotionService {


    boolean createPromotion(ProductPromotionDTO dto);

    boolean updatePromotion(ProductPromotionDTO dto);

    boolean endPromotion(Long promotionId);

    PageInfo<PromotionVO> queryPromotionPage(PromotionQueryDTO queryDTO);

    List<PromotionVO> getActivePromotionsBySpuId(Long spuId);

    int endPromotionBySpuId(Long spuId);
}
